//财务模块路由
import Layout from '@/layout'

const financeRouter = {
  // 计费引擎相关路由
  path: '/finance',
  component: Layout,
  redirect: 'noRedirect',
  name: 'finance',
  meta: { title: '计费引擎', icon: 'chart' },
  children: [
    {
      path: '/brandservice',
      component: () => import('@/views/Finance/BillingEngine/Brandservice/index.vue'),
      name: 'brandservice',
      meta: { title: '品牌服务', noCache: true }
    },
    {
      path: '/newrule',
      component: () => import('@/views/Finance/BillingEngine/Brandservice/newrule.vue'),
      name: 'newrule',
      meta: { title: '新增规则', noCache: true }
    },
    {
      path: '/businesservice',
      component: () => import('@/views/Finance/BillingEngine/Businesservice/index.vue'),
      name: 'businesservice',
      meta: { title: '商家服务', noCache: true }
    },
    {
      path: '/newbusines',
      component: () => import('@/views/Finance/BillingEngine/Businesservice/newBusines.vue'),
      name: 'businesservice',
      meta: { title: '新增商家规则', noCache: true }
    },
    {
      path: '/warehouse',
      component: () => import('@/views/Finance/BillingEngine/Warehouseservice/index.vue'),
      name: 'warehouse',
      meta: { title: '仓配服务', noCache: true }
    },
    {
      path: '/storagefeerules',
      component: () => import('@/views/Finance/BillingEngine/Warehouseservice/storageFeeRules.vue'),
      name: 'storagefeerules',
      meta: { title: '仓费规则', noCache: true }
    },
    {
      path: '/freightrules',
      component: () => import('@/views/Finance/BillingEngine/Warehouseservice/freightRules.vue'),
      name: 'freightrules',
      meta: { title: '运费规则', noCache: true }
    },
    {
      path: '/waresetting',
      component: () => import('@/views/Finance/BillingEngine/Warehouseservice/setting.vue'),
      name: 'waresetting',
      meta: { title: '设置', noCache: true }
    }
  ]
}

export default financeRouter
